package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/6 19:50
 * @Version 1.0
 */
public class TeatFloat {
    public static void main(String[] args) {
        FloatDemo fl1 = new FloatDemo();
        FloatDemo fl2 = new FloatDemo();

        fl1.f = 9.9f;
        fl2.f = 47.47f;

        System.out.println("1: fl1.f: "+fl1.f+", fl2.f: "+fl2.f);

        fl1.f = fl2.f;
        System.out.println("1: fl1.f: "+fl1.f+", fl2.f: "+fl2.f);

        fl1.f = 9.9f;
        System.out.println("1: fl1.f: "+fl1.f+", fl2.f: "+fl2.f);

//        答案：
//        1: fl1.f: 9.9, fl2.f: 47.47
//        1: fl1.f: 47.47, fl2.f: 47.47
//        1: fl1.f: 9.9, fl2.f: 47.47
    }
}

class FloatDemo{
    float f;
}